import requests

url='https://fgk.chinatax.gov.cn/zcfgk/c100009/listflfg_fg.html'
headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'
}
#r = requests.get(url, headers=headers)
#print(r.text)

headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'
}
r = requests.get(url=url, headers=headers)

# print(type(r))
# print(r.status_code)
# print(type(r.text))
# print(r.text[:100])
# print(r.text)
# print(r.cookies)
print(type(r.status_code), r.status_code)
print(type(r.headers), r.headers)
print(type(r.cookies), r.cookies)
print(type(r.url), r.url)
print(type(r.history), r.history)
